package com.nut.spp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.nut.spp.common.BaseEntity;
import lombok.Data;

/**
 * 订单表
 */
@Data
@TableName("biz_order")
public class Order extends BaseEntity {

    private Integer id;

    //订单Id
    private String orderId;

    //会员Id
    private Long memberId;

    //手机号
    private String mobile;

    //商品ID
    private Integer goodsId;

    //商品名称
    private String goodsTitle;

    //商品类型 1会员 2粉丝代理套餐 3商品
    private Integer goodsType;

    //收货人手机号
    private String receiveMobile;

    //收货人姓名
    private String receiveName;

    //收货省市区ID
    private String receivePathId;

    //收货省市区名称
    private String receivePathName;

    //收货详细地址
    private String receiveAddress;

    //商品金额
    private Integer goodsMoney;

    //运费
    private Integer freightMoney;

    //总金额
    private Integer totalMoney;

    //会员优惠券ID
    private Integer memberCouponId;

    //优惠金额
    private Integer couponMoney;

    //应付金额
    private Integer realMoney;

    //实付金额
    private Integer payMoney;

    //退款金额
    private Integer refundMoney;

    //支付渠道 wx,ali
    private String payChannel;

    //备注  可填下单信息
    private String remark;

    //订单状态 0待付款 1已取消 2已付款 3已发货 4已完成 5交易关闭
    private Integer status;

    //取消时间
    private String cancelTime;

    //关闭时间
    private String closeTime;

    //支付时间
    private String payTime;

    //退款时间
    private String refundTime;

    //邀请人手机号
    private String inviteMobile;

    //邀请人会员Id
    private String inviteMemberId;

//    //具体商品列表
//    @TableField(exist = false)
//    private transient List<OrderGoods> goods;

}
